package shared;

import java.io.Serializable;

public class DataChunk implements Serializable
{

    private static final long serialVersionUID = 4444L;

    private byte[] content;

    private long offset = 0;

    private boolean isLast = true;

    public DataChunk(byte[] newContent)
    {
	super();
	this.content = newContent;
    }

    public DataChunk(byte[] newContent, int newOffset, boolean isEnd)
    {
	super();
	this.content = newContent;
	this.offset = newOffset;
	this.isLast = isEnd;
    }

    public byte[] getContent()
    {
	return content;
    }

    public void setContent(byte[] content)
    {
	this.content = content;
    }

    public long getOffset()
    {
	return offset;
    }

    public void setOffset(long newOffset)
    {
	this.offset = newOffset;
    }

    public boolean isLast()
    {
	return isLast;
    }

    public void setLast(boolean isLast)
    {
	this.isLast = isLast;
    }

}
